'use strict';

const Controller = require('../core/base_controller');

class BookController extends Controller {
  async index() {
    this.ctx.body = 'book'
  }
  async content() {
    let bookId = this.ctx.params.id
    const info = await this.ctx.service.book.find(bookId);
    // this.logger.debug('current user: %j', info);
    this.logger.warn('WARNNING!!!!');
    this.ctx.body = info
  }
}

module.exports = BookController;
